package com.sparrow.manage.common.controller;

import com.sparrow.manage.auth.shiro.ShiroUser;
import org.apache.shiro.SecurityUtils;

public abstract class BaseController {
    protected final ShiroUser getCurrentUser(){
        return (ShiroUser) SecurityUtils.getSubject().getPrincipal();
    }
}
